#include <stdio.h>
#include <string.h>

int f_get_pos_string(char *pcBuf, char *lChar, char *rChar) {
    char *pcBegin = NULL;
    char *pcEnd = NULL;

    pcBegin = strstr(pcBuf, lChar);
    pcEnd = strstr(pcBuf, rChar);
    if(pcBegin == NULL || pcEnd == NULL || pcBegin > pcEnd) {
        return -1;
    } else {
        return 0;
    }
}

